#ifndef BOARD_H
#define BOARD_H

#include<QWidget>
#include"Stone.h"

class Board : public QWidget
{
    Q_OBJECT
public:
    explicit Board(QWidget *parent = nullptr);

    Stone _s[32];

    int _r;

    QPoint center(int row,int col);
    QPoint center(int id);

    void drawStone(QPainter& painter ,int id);

    void paintEvent(QPaintEvent*);
signals:    
};

#endif // BOARD_H
